package com.e3.basdoc.employeecls.model;

import com.e3.template.model.TGFTreeModel;

public class EmployeeClsModel extends TGFTreeModel implements EmployeeClsFields {

	private static final long serialVersionUID = 5580386082903123870L;
	
	private String code;
	
	private String name;
	
	private String remark;
	
	public String getCode() {
		return get(EmployeeClsModel.CODE);
	}

	public void setCode(String code) {
		set(EmployeeClsModel.CODE,code);
	}

	public String getName() {
		return get(EmployeeClsModel.NAME);
	}

	public void setName(String name) {
		set(EmployeeClsModel.NAME,name);
	}

	public String getRemark() {
		return get(EmployeeClsModel.REMARK);
	}

	public void setRemark(String remark) {
		set(EmployeeClsModel.REMARK,remark);
	}
	
	public String toString(){
		return getName();
	}

	public String[] getModelFields() {
		return EmployeeClsFields.fieldNames;
	}

	@Override
	public String getParentFiledName() {
		return EmployeeClsModel.PARENT_EMPLOYEECLS;
	}

}
